package com.link.base.base.bugmanagement.service;

import com.link.base.base.bugmanagement.dao.mybatis.mapper.BugManagementMapper;
import com.link.base.base.bugmanagement.model.BugManagement;
import com.link.core.basic.dao.mapper.BasicMapper;
import com.link.core.basic.service.BasicServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Copyright  hande Company. All Rights Reserved.
 *
 * @author  阳晓琳
 * @date:   2018/11/8 16:42
 * @version 1.0
 */

@Service
public class BugManagementServiceImpl extends BasicServiceImpl<BugManagement> implements BugManagementService {

    @Resource
    private BugManagementMapper bugManagementMapper;

    @Override
    public BasicMapper<BugManagement> getBasicMapper() {
        return bugManagementMapper;
    }

    /**
     * 列表页更新行记录
     * @param entity
     * @return
     * @throws Exception
     */
    @Override
    public BugManagement updateByList(BugManagement entity) throws Exception {
        bugManagementMapper.listUpdate(entity);
        BugManagement record = bugManagementMapper.queryById(entity);
        return record;
    }
}
